package com.yzd.learnjava.io;

import java.io.File;

import com.yzd.learnjava.util.Directory;
import com.yzd.learnjava.util.PPrint;
import com.yzd.learnjava.util.Print;

public class DirectoryDemo {
	public static void main(String[] args) {
		PPrint.pprint(Directory.walk(".").dirs);
		
		for(File file : Directory.local(".", "T.*")) {
			Print.print(file);
		}
		Print.print("--------------");
		
		for(File file : Directory.walk(".", "T.*\\.java")) {
			Print.print(file);
		}
		Print.print("===============");
		
		for(File file : Directory.walk(".", ".*[Zz].*\\.class")) {
			Print.print(file);
		}
	}
}
